//
//  UILable+Extension.swift
//  ShangHaiWeiBo
//
//  Created by 蔡杰 on 16/2/26.
//  Copyright © 2016年 蔡杰. All rights reserved.
//

import UIKit


extension UILabel {


    convenience init(cj_text text:String ,
        fontSize: CGFloat = 14,
        color: UIColor = UIColor.darkGrayColor(),
        alignment: NSTextAlignment = .Left){
    
            self.init()
            
            self.text = text
            self.textColor = color
            self.font = UIFont.systemFontOfSize(fontSize)
            self.textAlignment = alignment
            
            self.numberOfLines = 0
            
            // 自动调整大小
            sizeToFit()


        
    }

}